package com.xw.Controller;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import com.xw.Beans.MailBox;
import com.xw.Contents.RetCodeEnums;
import com.xw.Model.JsonResponse;
import com.xw.Service.MailBoxService;

/**
 * 描述:收件箱相关配置接口
 * @author 杨建全
 * @date 2017年4月24日 上午11:29:07
 */
@RequestMapping("/mailBox")
@RestController
public class MailBoxController {
	
	@Autowired
	private MailBoxService mailBoxService;
	
	@GetMapping("/all")
	public JsonResponse getAllMailBox(){
		List<MailBox> allMailBox = mailBoxService.getAllMailBox();
		return new JsonResponse(RetCodeEnums.SUCCESS,allMailBox,"请求成功！");
	}
}
